namespace KDS.Mes.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddJitAlcCode : DbMigration
    {
        public override void Up()
        {
            //CreateTable(
            //    "dbo.T_BomJitAlcCode",
            //    c => new
            //        {
            //            Id = c.Int(nullable: false, identity: true),
            //            AlcCodeId = c.Int(nullable: false),
            //            LineId = c.Int(nullable: false),
            //            StorageId = c.Int(nullable: false),
            //        })
            //    .PrimaryKey(t => t.Id)
            //    .ForeignKey("dbo.T_BomAlcCode", t => t.AlcCodeId, cascadeDelete: true)
            //    .ForeignKey("dbo.T_BasicLine", t => t.LineId, cascadeDelete: true)
            //    .ForeignKey("dbo.T_BasicStorage", t => t.StorageId, cascadeDelete: true)
            //    .Index(t => t.AlcCodeId)
            //    .Index(t => t.LineId)
            //    .Index(t => t.StorageId);
            
        }
        
        public override void Down()
        {
            //DropForeignKey("dbo.T_BomJitAlcCode", "StorageId", "dbo.T_BasicStorage");
            //DropForeignKey("dbo.T_BomJitAlcCode", "LineId", "dbo.T_BasicLine");
            //DropForeignKey("dbo.T_BomJitAlcCode", "AlcCodeId", "dbo.T_BomAlcCode");
            //DropIndex("dbo.T_BomJitAlcCode", new[] { "StorageId" });
            //DropIndex("dbo.T_BomJitAlcCode", new[] { "LineId" });
            //DropIndex("dbo.T_BomJitAlcCode", new[] { "AlcCodeId" });
            //DropTable("dbo.T_BomJitAlcCode");
        }
    }
}
